Fix gpsbabel-gui package
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Fri, 26 Jul 2019 06:30:19 +0000 (08:30 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Fri, 26 Jul 2019 09:11:43 +0000 (11:11 +0200)
Closes: #932875
debian/gpsbabel-gui.install
debian/patches/0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch [new file with mode: 0644]
debian/patches/series
debian/rules

index 640bf7c891b6f14257ec5d6b0daed6de3023be1f..c093b335ae092ae71eecf2db0a632693405f1bbb 100644 (file)
@@ -1,3 +1,3 @@
-gui/gpsbabelfe /usr/bin
+gui/objects/gpsbabelfe /usr/bin
 debian/gpsbabel.xpm /usr/share/pixmaps
 gui/gpsbabel.desktop /usr/share/applications
diff --git a/debian/patches/0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch b/debian/patches/0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch
new file mode 100644 (file)
index 0000000..839945c
--- /dev/null
@@ -0,0 +1,42 @@
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Fri, 26 Jul 2019 10:49:11 +0200
+Subject: Don't pass MAKEFLAGS to $(MAKE)
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+make will pass them automatically. Also they are not meant to be
+consumed by make as they are stripped:
+
+Thus, if you do ‘make -ks’ then MAKEFLAGS gets the value ‘ks’.
+
+https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html
+---
+ Makefile.in | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index f6c341f..f376e46 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -382,17 +382,17 @@ rpm: changes.html
+       tools/mkrpm $(WEB) $(VERSD) $(RELEASE)
+ gui: gpsbabel$(EXEEXT)
+-      cd gui ; $(QMAKE) app.pro && $(MAKE) $(MAKEFLAGS)
++      cd gui ; $(QMAKE) app.pro && $(MAKE)
+ linux-gui: gui
+-      cd gui; $(MAKE) $(MAKEFLAGS) package
++      cd gui; $(MAKE) package
+ # Build the Qt front end, place GPSBabel in the right place, deploy all
+ # the libs.
+ mac-gui: gui
+       rm -f gui/GPSBabelFE.dmg
+-      cd gui; $(MAKE) $(MAKEFLAGS) package
++      cd gui; $(MAKE) package
+       mv gui/GPSBabelFE.dmg  gui/GPSBabel-$(VERSIOND).dmg
+ # release check using CVS tree
index d8b0e030451eed1ac1b2b358ba65f29b12107c79..f3752ea72c055033e8327a27fa0f98ea62a03910 100644 (file)
@@ -6,3 +6,4 @@ htmldoc-location
 0007-Use-system-shapelib.patch
 0008-Use-usb.h-from-system-include-dir.patch
 0011-Fix-exec-in-gpsbabel.desktop.patch
+0009-Don-t-pass-MAKEFLAGS-to-MAKE.patch
index 3fdfb6cdcbc44da7dc30d9f5704cddabc6a71ce2..f8cbfa5bfe1ba385af06d2e95254b773747640e6 100755 (executable)
@@ -35,6 +35,10 @@ override_dh_installman:
                        ./gpsbabel
        dh_installman
 
+override_dh_auto_build:
+       dh_auto_build
+       if dpkg -s qtwebengine5-dev; then $(MAKE) gui; fi
+
 override_dh_auto_build-indep:
        $(MAKE) doc
        $(MAKE) gpsbabel.html